<?xml version="1.0" encoding="UTF-8"?>
<definitions
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  targetNamespace="Examples">

  <process id="oneTaskProcessRestart_710" name="The One Task Process" isExecutable="true" camunda:historyTimeToLive="5">
    <documentation>This is a process for testing purposes</documentation>

    <startEvent id="theStart" />
    <sequenceFlow id="flow1" sourceRef="theStart" targetRef="theTask" />
    <userTask id="theTask" name="my task">
      <extensionElements>
        <camunda:executionListener event="start">
          <camunda:script scriptFormat="groovy">if(execution.getBusinessKey() != "RestartProcessInstanceBatchScenario") throw new RuntimeException()</camunda:script>
        </camunda:executionListener>
        <camunda:inputOutput>
          <camunda:inputParameter name="Input_08c2ntk">
            <camunda:script scriptFormat="groovy">if(execution.getBusinessKey() != "RestartProcessInstanceBatchScenario") throw new RuntimeException()</camunda:script>
          </camunda:inputParameter>
        </camunda:inputOutput>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow2" sourceRef="theTask" targetRef="theEnd" />
    <endEvent id="theEnd" />

  </process>

</definitions>
